package com.pactera.miyuangroup.vo.response;

/**
 * 返回coed
 *
 * @author Wangwu
 * @create 2018-03-30 下午4:56
 **/
public enum ResultStatusCode {


    ///


    ///


    ///


    ///
    OK(0, "ok", "成功"),
    BUSINESS_ERROR(900001, "FAIL", "失败"),
    TEMPORARILY_NO_DATA(900002, "Temporarily no data", "暂无数据"),
    UNKNOWN_ERROR(999999, "Unknown Error", "未知错误"),
    INVALID_CLIENTID(300003, "Invalid clientid", "无效的客户端ID"),
    INVALID_PASSWORD(300004, "User name or password is incorrect", "用户名或密码不正确"),
    INVALID_CAPTCHA(300005, "Invalid captcha or captcha overdue", "验证码过期或无效"),
    INVALID_TOKEN(300006, "Invalid token", "无效的口令"),
    ACCOUNT_NOT_AVAILABLE(300007, "Account is not available", "账户不可用"),


    /*后台返回码开始*/
    INVALID_PAGE(500101, "Paging parameter error", "分页参数错误"),
    ADD_USER_FAILURE(500102, "New user failure", "新增用户失败"),
    USER_NAME_ALREADY_EXISTED(500103, "Username has already existed", "用户名已存在"),
    UPDATE_USER_FAILURE(500104, "Failure of user information modification", "用户信息修改失败"),
    DELETE_USER_FAILURE(500105, "User deleting failure", "用户删除失败"),
    USER_DOES_NOT_EXIST(500106, "user does not exist", "用户不存在"),
    USER_PHONE_NOT_EXIST(500107, "The number of mobile phones does not exist", "手机号码不存在"),
    SUBMITTED_AUDITED(500108, "Submitted, to be audited", "已提交，待审核"),


    /*后台返回码结束*/

    /*警告提示返回码*/
    DATA_IS_SYNC(600001, "The data is in sync", "数据正在同步");
    /*警告提示返回码结束*/

    private int code;

    private String msg;

    private String cmsg;

    ResultStatusCode(final int code, final String msg, final String cmsg) {
        this.code = code;
        this.msg = msg;
        this.cmsg = cmsg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getCmsg() {
        return cmsg;
    }

}
